<!-- Content Header (Page header) -->
<section class="content-header">
    <h1>
        Chart Analisys
    </h1>
    <ol class="breadcrumb">
        <li><a href="<?php echo base_url("admin_home");?>"><i class="fa fa-dashboard"></i> Home</a></li>
        <li><a href="<?php echo base_url("admin_chart");?>">General Chart</a></li>
        <li class="active">Filter</li>
    </ol>
</section>

<!-- Main content -->
<section class="content">
    <div class="loading">Loading&#8230;</div>
    <div class='row'>
        <div class='col-md-12'>
            <div class='box box-info'>
                <div class='box-header'>
                    <h3 class='box-title'>Filter Form</h3>
                    <!-- tools box -->
                    <div class="pull-right box-tools">
                        <button class="btn btn-info btn-sm" data-widget='collapse' data-toggle="tooltip" title="Collapse"><i class="fa fa-minus"></i></button>
                        <!--<button class="btn btn-info btn-sm" data-widget='remove' data-toggle="tooltip" title="Remove"><i class="fa fa-times"></i></button>-->
                    </div><!-- /. tools -->
                </div><!-- /.box-header -->
                <div class='box-body pad'>
                    <div id="msg" class="alert alert-danger alert-dismissable">
                        <i class="fa fa-ban"></i>
                        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">�</button>
                        <b>Alert!</b> Danger alert preview. This alert is dismissable. A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart.
                    </div>
                    <form role="form" action="<?php echo base_url();?>admin_chart/filter_act" method="post" id="frm_filter_chart">
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label>Tampilan Berdasarkan</label>
                                    <select class="form-control" id="groupby" name="groupby" >
                                        <option value=""> - Pilih - </option>
                                        <option value="statushiv"> Status HIV </option>
                                        <option value="jeniskekerasan"> Jenis Kekerasan </option>
                                        <option value="hubpelaku"> Hubungan Pelaku </option>
                                    </select>
                                </div>
                                <h3>Kriteria</h3>
                                <div class="form-group">
                                    <label>Province</label>
                                    <select class="form-control" id="province1" name="province">
                                        <option value=""> - Pilih Provinsi - </option>
                                        <option value="all"> Semua </option>
                                        <?php
                                    foreach ($list_state as $l) {
                                        ?>
                                        <option value="<?php echo $l->state_id;?>"><?php echo $l->state_name;?></option>
                                            <?php
                                    }
                                        ?>
                                    </select>
                                </div>
                                <div class="form-group">
                                    <label>Status HIV</label>
                                    <select class="form-control" id="status_hiv" name="status_hiv">
                                        <option value=""> - Pilih Status - </option>
                                        <option value="all"> semua </option>
                                        <option value="0"> negativ </option>
                                        <option value="1"> postitif </option>
                                    </select>
                                </div>
                                <div class="form-group">
                                    <label>Hubungan dengan Pelaku</label>
                                    <select class="form-control" id="hub_pelaku" name="hub_pelaku">
                                        <option value=""> - Pilih - </option>
                                        <option value="all"> semua </option>
                                        <?php
                                        foreach ($list_pelaku as $r) {
                                            ?>
                                        <option value="<?php echo $r->pelaku_hub;?>"> <?php echo $r->pelaku_hub;?> </option>
                                                <?php
                                        } 
                                        ?>
                                    </select>
                                </div>
                                <div class="form-group">
                                    <label>Jenis Kekerasan</label>
                                    <select class="form-control" id="jenis_k" name="jenis_k">
                                        <option value=""> - Pilih - </option>
                                        <option value="all"> semua </option>
                                        <?php
                                        foreach ($list_jk as $rjk) {
                                            ?>
                                        <option value="<?php echo $rjk->jenis_kasus;?>"> <?php echo $rjk->jenis_kasus;?> </option>
                                                <?php
                                        } 
                                        ?>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-12">
                                <div class="form-group" style="border-top: 1px dotted #ddd;padding-top: 20px;">
                                    <button type="submit" class="btn btn-primary">Submit</button>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div><!-- /.box -->
        </div><!-- /.col-->
    </div><!-- ./row -->



</section><!-- /.content -->
